package com.qzct.mapper;

import com.mybatisflex.core.BaseMapper;
import com.qzct.entity.Admin;
import com.qzct.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 *  映射层。
 *
 * @author 闽闽
 * @since 2024-12-07
 */
public interface AdminMapper extends BaseMapper<Admin> {
    @Select("select * from tb_admin where name=#{username} and password = #{password}")
    Admin login(@Param("username") String username, @Param("password") String password);
}
